package com.yxym.string_;

public class StringBuffer01 {
    public static void main(String[] args) {
        //1.StringBuffer的直接父类是AbstractStringBuilder
        //2.StringBuffer实现了Serializable,即StringBuffer可以串行化
        //3.在父类中，AbstractStringBuilder有属性char[] value,不是final
        //该value数组存放字符串内容，引出存在推中的
        //4.StringBuffer是final类，不能被继承
        //5.StringBuffer字符内容存在char[] value,不需要每次更改地址
        StringBuffer stringBuffer = new StringBuffer();
        //1.创建char[]为16大小的字符串
        StringBuffer stringBuffer2 = new StringBuffer(20);
        StringBuffer stringBuffer3= new StringBuffer("hello");

    }
}
